<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditDocenteEJBTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditDocenteEJBLabel_DTarjetaProfesional}" for="DTarjetaProfesional" />
                    <h:inputText id="DTarjetaProfesional" value="#{docenteEJBController.selected.DTarjetaProfesional}" title="#{bundle.EditDocenteEJBTitle_DTarjetaProfesional}" required="true" requiredMessage="#{bundle.EditDocenteEJBRequiredMessage_DTarjetaProfesional}"/>
                    <h:outputLabel value="#{bundle.EditDocenteEJBLabel_DTipoVinculacion}" for="DTipoVinculacion" />
                    <h:inputText id="DTipoVinculacion" value="#{docenteEJBController.selected.DTipoVinculacion}" title="#{bundle.EditDocenteEJBTitle_DTipoVinculacion}" />
                    <h:outputLabel value="#{bundle.EditDocenteEJBLabel_DEstudio}" for="DEstudio" />
                    <h:inputText id="DEstudio" value="#{docenteEJBController.selected.DEstudio}" title="#{bundle.EditDocenteEJBTitle_DEstudio}" />
                    <h:outputLabel value="#{bundle.EditDocenteEJBLabel_DEstado}" for="DEstado" />
                    <h:inputText id="DEstado" value="#{docenteEJBController.selected.DEstado}" title="#{bundle.EditDocenteEJBTitle_DEstado}" required="true" requiredMessage="#{bundle.EditDocenteEJBRequiredMessage_DEstado}"/>
                    <h:outputLabel value="#{bundle.EditDocenteEJBLabel_personaPIdentificacion}" for="personaPIdentificacion" />
                    <h:selectOneMenu id="personaPIdentificacion" value="#{docenteEJBController.selected.personaPIdentificacion}" title="#{bundle.EditDocenteEJBTitle_personaPIdentificacion}" >
                        <f:selectItems value="#{personaEJBController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{docenteEJBController.update}" value="#{bundle.EditDocenteEJBSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditDocenteEJBViewLink}"/>
                <br />
                <h:commandLink action="#{docenteEJBController.prepareList}" value="#{bundle.EditDocenteEJBShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.EditDocenteEJBIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
